import { axios } from '@/utils/request'

const api = {
  qbDeviceClassify: '/goods/classify'
}
export function getQbDeviceClassifyInfo (id) {
  return axios({
    url: api.qbDeviceClassify + '/get/' + id,
    method: 'get'
  })
}
export function getQbDeviceClassifyList (parameter) {
  return axios({
    url: api.qbDeviceClassify + '/list',
    method: 'get',
    params: parameter
  })
}

export function saveQbDeviceClassify (parameter) {
  return axios({
    url: api.qbDeviceClassify + (parameter.id > 0 ? '/update' : '/save'),
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function delQbDeviceClassify (parameter) {
  return axios({
    url: api.qbDeviceClassify + '/remove',
    method: 'post',
    params: parameter
  })
}

export const qbDeviceClassifyExport = api.qbDeviceClassify + '/export'
